import VueRouter from 'vue-router'
import home from './components/Home.vue'
import members from './components/Members.vue'
import search from './components/Search.vue'
import shopCar from './components/ShopCar.vue'
import newsList from './components/news/NewsList.vue'
import newsInfo from './components/news/NewsInfo.vue'
import photoList from './components/photos/PhotoList.vue'
import photoInfo from './components/photos/PhoneInfo.vue'
import goodsList from "./components/goods/GoodsList.vue"
import goodsInfo from "./components/goods/GoodsInfo.vue"
import goodsDesc from "./components/goods/GoodsDesc.vue"
import goodsComments from "./components/goods/GoodsComments.vue"
let router = new VueRouter({
    routes:[
        {path:'/',redirect:"/home"},
        {path:'/home',component:home},
        {path:'/members',component:members},
        {path:'/search',component:search},
        {path:'/shopCar',component:shopCar},
        {path:'/home/newsList',component:newsList},
        {path:'/home/newsinfo/:id',component:newsInfo},
        {path:'/home/photoList',component:photoList},
        {path:'/photoList/photoInfo/:id',component:photoInfo},
        {path:'/home/goodslist',component:goodsList},
        {path:'/home/goodsInfo/:id',component:goodsInfo,name:"goodsInfo"},
        {path:'/home/goodsDesc/:id/get/:title',component:goodsDesc,name:"goodsDesc"},
        {path:'/home/goodsComments/:id',component:goodsComments,name:"goodsComments"},
    ],
    linkActiveClass:'mui-active'
});
export default  router;